package com.mapper;

import java.io.Serializable;

/**
 * 
 * @TableName users
 */
public class User implements Serializable {
    /**
     * 
     */
    private Integer uid;

    /**
     * 
     */
    private String uname;

    /**
     * 
     */
    private Integer uage;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getUid() {
        return uid;
    }

    /**
     * 
     */
    public void setUid(Integer uid) {
        this.uid = uid;
    }

    /**
     * 
     */
    public String getUname() {
        return uname;
    }

    /**
     * 
     */
    public void setUname(String uname) {
        this.uname = uname;
    }

    /**
     * 
     */
    public Integer getUage() {
        return uage;
    }

    /**
     * 
     */
    public void setUage(Integer uage) {
        this.uage = uage;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        User other = (User) that;
        return (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
            && (this.getUname() == null ? other.getUname() == null : this.getUname().equals(other.getUname()))
            && (this.getUage() == null ? other.getUage() == null : this.getUage().equals(other.getUage()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getUname() == null) ? 0 : getUname().hashCode());
        result = prime * result + ((getUage() == null) ? 0 : getUage().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", uid=").append(uid);
        sb.append(", uname=").append(uname);
        sb.append(", uage=").append(uage);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}